package com.azt.api.enums;

public enum UserEnum {
	cleader("企业领导",1,1,"cleader"),pleader("企业领导",2,1,"pleader"),
	cadmin("管理员",1,1,"homePage"),padmin("管理员",2,1,"homePage"),buyer("采购员",1,0,""),saler("销售员",2,0,"designEnquiry"),designer("设计员",1,0,""),cfinance("财务专员",1,0,"financeCenter"),pfinance("财务专员",2,0,"financeCenter");

	private String name;
	private Integer roleType;
	private Integer ifAdmin;
	private String code;//代表身份的code菜单

	private UserEnum(String name, Integer roleType,Integer ifAdmin,String code) {
	       this.name = name;
           this.roleType = roleType;
           this.ifAdmin=ifAdmin;
           this.code=code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getRoleType() {
		return roleType;
	}

	public void setRoleType(Integer roleType) {
		this.roleType = roleType;
	}

    public Integer getIfAdmin() {
		return ifAdmin;
	}

	public void setIfAdmin(Integer ifAdmin) {
		this.ifAdmin = ifAdmin;
	}
	
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

}
